#!/usr/bin/env python
# -*- coding:utf-8 -*-

import urllib2

# 网站
# -----------------------------------------------------------------------------------------------------------------------
# 人人网：http://www.renren.com/


# url
# -----------------------------------------------------------------------------------------------------------------------
url = "http://www.renren.com/431657176/profile"


# 头
# -----------------------------------------------------------------------------------------------------------------------
headers = {
    "Host": "www.renren.com",
    "Upgrade-Insecure-Requests": "1",
    "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36",
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
    "Referer": "http://follow.renren.com/list/933106658/pub/v7",
    "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8",
    "Cookie": "anonymid=jfky6av8-qsk1tf; depovince=CQ; _r01_=1; JSESSIONID=abcKbA_Rry5bCeu2vmqkw; ick_login=95f8e6be-a558-4fe0-8d62-16f9bc2b3a5f; loginfrom=null; jebe_key=acc9de2f-7b00-4ff3-8110-9cbf147fda63%7Cd532d8f0c2621237d489859c37f4cb5d%7C1522837635260%7C1%7C1522837636089; XNESSESSIONID=433458109464; wp_fold=0; t=ba4296652b8698e995d607c7e4f117398; societyguester=ba4296652b8698e995d607c7e4f117398; id=933106658; xnsid=6c26f900; ver=7.0; _ga=GA1.2.850498268.1522899151; _gid=GA1.2.1847230060.1522899151; jebecookies=eea19082-7280-434e-8753-9a5552fffa64|||||"
}


# 请求
# -----------------------------------------------------------------------------------------------------------------------
request = urllib2.Request(url, headers=headers)
response = urllib2.urlopen(request)
print response.read()
